class Avatar < ActiveRecord::Base
    belongs_to :user
    
    has_attachment :content_type => :image, 
                   :storage => :file_system,
                   :path_prefix => 'public/files/userfiles/avatars', 
                   :max_size => 1.megabytes,
                   :resize_to => '48x48!',
                   :thumbnails => { :thumb  => '24x24!', :mini  => '12x12!'}

    validates_as_attachment
end
